package com.minimalist.common.utils;


import com.minimalist.common.entity.basic.vo.config.ConfigVO;
import com.minimalist.common.entity.basic.vo.tenant.TenantVO;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 通用常量
 *
 * @author minimalist
 */
public class CommonConstant{


    /**
     * 系统配置缓存
     */
    public static Map<String, ConfigVO> systemConfigMap = new ConcurrentHashMap<>();

    /**
     * 租户缓存
     */
    public static Map<Long, TenantVO> tenantMap = new ConcurrentHashMap<>();

    /**
     * 数字 0
     */
    public static final int ZERO = 0;

    /**
     * 数字 1
     */
    public static final int ONE = 1;

    /**
     * 增
     */
    public static final String ADD = "add";

    /**
     * 删
     */
    public static final String DELETE = "delete";

    /**
     * 改
     */
    public static final String UPDATE = "update";

    /**
     * 租户ID标识
     */
    public static final String TRACE_ID = "traceId";

    /**
     * 多租户开关配置 key
     */
    public static final String SYSTEM_CONFIG_TENANT = "system.config.tenant";

    /**
     * 系统验证码 key
     */
    public static final String SYSTEM_CONFIG_CAPTCHA_ENABLE = "system.config.captcha.enable";

    /**
     * 用户头像大小 key
     */
    public static final String SYSTEM_CONFIG_USER_AVATAR_SIZE = "system.config.user.avatar.size";

}
